import 'package:ad_plugin/ad_source.dart';

/// FileName ad_params
/// @Author zhuqingfang
/// @Date 2022/9/19 1:51 下午
/// @Description ad params
class AdGlobalParams {
  String appId = '';
  String appSecret = '';
  String adAppId = '';
  String adAppKey = '';
  String userId = "0";
  String deviceId = '';
  String onLineServer = '';
  String channel = '';
  String subChannel = '';
  AdSource adSource = AdSource.topOn;
  bool? isDebugServerOpen = true;
  bool? isLogOpen = true;

  @override
  String toString() {
    return '(adAppId:$adAppId,'
        'adAPPKey:$adAppKey,'
        'appId:$appId,'
        'appSecret:$appSecret,'
        'userId:$userId,'
        'onLineServer:$onLineServer,'
        'isDebugServer:$isDebugServerOpen,'
        'isLogOpen:$isLogOpen,'
        'deviceId:$deviceId)';
  }
}

///具体广告源的参数
class AdParams {
  const AdParams({this.mid, this.sourceAdId, this.sourceAdCode});
  final int? mid;
  final String? sourceAdId;
  final String? sourceAdCode;

  @override
  String toString() {
    return 'mid:$mid sourceAdId:$sourceAdCode sourceAdCode:$sourceAdCode';
  }
}
